import request from '../utils/request'

/**
 * 导入一卡通收入
 */
export function importCard(params) {
  return request({
    url: '/api/importCard',
    method: 'post',
    data: {...params}
  })
}

/**
 * 一卡通列表
 */
export function incomeCardList(params) {
  return request({
    url: '/api/incomeCardList',
    method: 'post',
    data: {...params}
  })
}

/**
 * 导入邮储收入
 */
export function importPost(params) {
  return request({
    url: '/api/importPost',
    method: 'post',
    data: {...params}
  })
}

/**
 * 邮储列表
 */
export function incomePostList(params) {
  return request({
    url: '/api/incomePostList',
    method: 'post',
    data: {...params}
  })
}

/**
 * 新增现金收入
 */
export function storeCash(params) {
  return request({
    url: '/api/incomeCash',
    method: 'post',
    data: {...params}
  })
}

/**
 * 修改现金收入
 */
export function updateCash(form, id) {
  return request({
    url: `/api/incomeCash/${id}`,
    method: 'put',
    data: {...form, id}
  })
}

/**
 * 删除现金收入
 */
export function destroyCash(ids) {
  return request({
    url: '/api/incomeCash',
    method: 'delete',
    data: {ids}
  })
}

/**
 * 导入现金收入
 */
export function importCash(params) {
  return request({
    url: '/api/importCash',
    method: 'post',
    data: {...params}
  })
}

/**
 * 现金列表
 */
export function incomeCashList(params) {
  return request({
    url: '/api/incomeCashList',
    method: 'post',
    data: {...params}
  })
}

/**
 * 新增包车收入
 */
export function storeCharteredCar(params) {
  return request({
    url: '/api/incomeCharteredCar',
    method: 'post',
    data: {...params}
  })
}

/**
 * 修改包车收入
 */
export function updateCharteredCar(form, id) {
  return request({
    url: `/api/incomeCharteredCar/${id}`,
    method: 'put',
    data: {...form, id}
  })
}

/**
 * 删除包车收入
 */
export function destroyCharteredCar(ids) {
  return request({
    url: '/api/incomeCharteredCar',
    method: 'delete',
    data: {ids}
  })
}

/**
 * 包车列表
 */
export function incomeCharteredCarList(params) {
  return request({
    url: '/api/incomeCharteredCarList',
    method: 'post',
    data: {...params}
  })
}

/**
 * 新增包车收入
 */
export function storeCharteredCarFixed(params) {
  return request({
    url: '/api/incomeCharteredCarFixed',
    method: 'post',
    data: {...params}
  })
}

/**
 * 修改包车收入
 */
export function updateCharteredCarFixed(form, id) {
  return request({
    url: `/api/incomeCharteredCarFixed/${id}`,
    method: 'put',
    data: {...form, id}
  })
}

/**
 * 删除包车收入
 */
export function destroyCharteredCarFixed(ids) {
  return request({
    url: '/api/incomeCharteredCarFixed',
    method: 'delete',
    data: {ids}
  })
}

/**
 * 包车列表
 */
export function incomeCharteredCarFixedList(params) {
  return request({
    url: '/api/incomeCharteredCarFixedList',
    method: 'post',
    data: {...params}
  })
}
